package cn.fastoo.common.entity.product.Query;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by lowkey on 17/7/24.
 */
@Table(name = "     `product_package_det` ppd  INNER JOIN `product`  p\n" +
        "on p.id = ppd.product_id ")
public class ViewProductPackageDet {

    @Id
    @Column(name = "id",columnDefinition = "ppd.id")
    private Long id;

    @Column(name = "product_id",columnDefinition = "ppd.product_id")
    private Long productId;

    @Column(name = "quantity",columnDefinition = "ppd.quantity")
    private Integer quantity;

    @Column(name = "product_package_id",columnDefinition = "ppd.product_package_id")
    private Long productPackageId;

    @Column(name = "product_name",columnDefinition = "p.name")
    private String productName;

    @Column(name = "pic_urls",columnDefinition = "p.pic_urls")
    private String picUrls;

    @Column(name = "unit",columnDefinition = "p.unit")
    private String unit;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Long getProductPackageId() {
        return productPackageId;
    }

    public void setProductPackageId(Long productPackageId) {
        this.productPackageId = productPackageId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getPicUrls() {
        return picUrls;
    }

    public void setPicUrls(String picUrls) {
        this.picUrls = picUrls;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
